package top.szhome.framework.starter.boot.configuration;

import org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import top.szhome.framework.core.tools.util.SpringUtil;

/**
 * 工具类注册
 *
 * @author 唐加利
 * @date 2023/8/12
 **/
@Configuration
public class UtilAutoConfiguration {

    /**
     * Spring工具类
     * @return
     */
    @Bean
    @ConditionalOnMissingBean
    public SpringUtil springUtil(){
        return new SpringUtil();
    }

}
